<span><?php echo $category['Category']['name']; ?></span>
<ul id="subcategories-list">
	<?php 
	$subcategories = $category['Subcategory'];
	foreach ($subcategories as $subcategory){?>
		<a href="<?php echo $this->webroot."galerias/".$subcategory['code']; ?>" class="color">
			<li class="color"><span><?php echo $subcategory['name']; ?></span></li>
		</a>
	<?php }?>
</ul>